package day240602;

import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;
public class SetDemo3 {
    public static void main(String[] args) {
        Set<String> set1 = new LinkedHashSet<>();
        set1.add("abc");
        set1.add("def");
        set1.add("qwe");
        set1.add("xyz");
        System.out.println(set1);
    }
}
